//
//  ZAlertControlTool.h
//  ZPrograme
//
//  Created by 周成龙 on 16/6/16.
//  Copyright © 2016年 none. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>

@interface ZAlertControlTool : NSObject <UIAlertViewDelegate>

+ (void)showHUB:(NSString *)msg;
+ (void)showHUB:(NSString *)msg withTitle:(NSString *)title;
+ (void)showHUB:(NSString *)msg withTitle:(NSString *)title back:(UINavigationController *)vc;
+ (void)showConfirmHUB:(NSString *)msg;


typedef void(^UIAlertViewCallBackBlock)(NSInteger buttonIndex);
@property (nonatomic, copy) UIAlertViewCallBackBlock alertViewCallBackBlock;
- (void)alertWithCallBackBlock:(UIAlertViewCallBackBlock)alertViewCallBackBlock
                         title:(NSString *)title
                       message:(NSString *)message
              cancelButtonName:(NSString *)cancelButtonName
             otherButtonTitles:(NSString *)otherButtonTitles, ...NS_REQUIRES_NIL_TERMINATION;


+ (void)showAlertControllerPreferredStyle:(UIAlertControllerStyle)preferredStyle
                                withTitle:(NSString *)titlet
                                  message:(NSString *)message
                                  okTitle:(NSString *)okTitle
                         destructiveTitle:(NSString *)destructiveTitle
                              cancelTitle:(NSString *)cancelTitle
                                 okAction:(void (^)(UIAlertAction *action))okActe
                             cancelAction:(void (^)(void))cancelActe
                        destructiveAction:(void(^)(void))destructiveActe;

@end
